<template>
  <div class="dashboard-editor-container">

    <panel-group @handleSetLineChartData="handleSetLineChartData" />

    <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:10px;">
      <h4  style="color: #333333;">当月数据统计</h4>
      <line-chart  />
    </el-row>

    <el-row :gutter="10">
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <h4 style="color: #333333;">订单状态数据</h4>
          <funnel-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8">        
        <div class="chart-wrapper">
          <h4 style="color: #333333;">服务分类数据</h4>
          <pie-chart />
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <h4 style="color: #333333;">本月接单排名</h4>
          <bar-chart />
        </div>
      </el-col>
    </el-row>

    
  </div>
</template>

<script>
import PanelGroup from './dashboard/PanelGroup'
import LineChart from './dashboard/LineChart'
import FunnelChart from './dashboard/FunnelChart'
import PieChart from './dashboard/PieChart'
import BarChart from './dashboard/BarChart'


export default {
  name: 'Index',
  components: {
    PanelGroup,
    LineChart,
    FunnelChart,
    PieChart,
    BarChart
  },
  data() {
    return {
    }
  },
  methods: {
    handleSetLineChartData(type) {
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 10px 10px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 0px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
